package com.ruoyi.recharge.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 储值明细对象 recharge_detail
 * 
 * @author ruoyi
 * @date 2025-09-04
 */
public class RechargeDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 变更时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "变更时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date changeTime;

    /** 客户手机 */
    @Excel(name = "客户手机")
    private String customerPhone;

    /** 变更类型 */
    @Excel(name = "变更类型")
    private String changeType;

    /** 变更金额 */
    @Excel(name = "变更金额")
    private BigDecimal changeAmount;

    /** 变更后余额 */
    @Excel(name = "变更后余额")
    private BigDecimal balanceAfterChange;

    /** 单号 */
    @Excel(name = "单号")
    private String orderNo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setChangeTime(Date changeTime) 
    {
        this.changeTime = changeTime;
    }

    public Date getChangeTime() 
    {
        return changeTime;
    }

    public void setCustomerPhone(String customerPhone) 
    {
        this.customerPhone = customerPhone;
    }

    public String getCustomerPhone() 
    {
        return customerPhone;
    }

    public void setChangeType(String changeType) 
    {
        this.changeType = changeType;
    }

    public String getChangeType() 
    {
        return changeType;
    }

    public void setChangeAmount(BigDecimal changeAmount) 
    {
        this.changeAmount = changeAmount;
    }

    public BigDecimal getChangeAmount() 
    {
        return changeAmount;
    }

    public void setBalanceAfterChange(BigDecimal balanceAfterChange) 
    {
        this.balanceAfterChange = balanceAfterChange;
    }

    public BigDecimal getBalanceAfterChange() 
    {
        return balanceAfterChange;
    }

    public void setOrderNo(String orderNo) 
    {
        this.orderNo = orderNo;
    }

    public String getOrderNo() 
    {
        return orderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("changeTime", getChangeTime())
            .append("customerPhone", getCustomerPhone())
            .append("changeType", getChangeType())
            .append("changeAmount", getChangeAmount())
            .append("balanceAfterChange", getBalanceAfterChange())
            .append("orderNo", getOrderNo())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
